package com.rz.htk.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.rz.core.common.model.PageEntity;

import java.time.LocalDateTime;

/**
 * @ClassName ProductDiscount
 * @Description 产品资费折扣信息
 * @Author maweiyue
 * @Date 2019/5/13 19:20
 */
@TableName("prd_discount")
public class ProductDiscount extends PageEntity {

    @TableId(type = IdType.AUTO)
    private Integer id;

    /** 代理商id */
    private Integer mngId;

    /** 产品资费信息id*/
    private Integer priceId;

    /** 产品资费信息路向 */
    private String priceDestination;

    /** 产品编号 */
    private String prdCode;

    /** 折扣方式：【1 总价折扣】 【2 单项折扣】 */
    private String type;

    /** 总价折扣率 */
    private double discount;

    /** 折扣后首重价格 */
    private double price;

    /** 折扣后续重价格 */
    private double disRatePrice;

    /** 税 */
    private double tax;

    /** 异常 */
    private double abnormal;

    /** 改单 */
    private double changeOrder;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT-8")
    private LocalDateTime crteTime;

    /** 创建者 */
    private Integer crteMngId;

    /** 备注 */
    private String remark;

    /** 代理商名称 */
    @TableField(exist = false)
    private String consumer;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getMngId() {
        return mngId;
    }

    public void setMngId(Integer mngId) {
        this.mngId = mngId;
    }

    public Integer getPriceId() {
        return priceId;
    }

    public void setPriceId(Integer priceId) {
        this.priceId = priceId;
    }

    public String getPriceDestination() {
        return priceDestination;
    }

    public void setPriceDestination(String priceDestination) {
        this.priceDestination = priceDestination;
    }

    public String getPrdCode() {
        return prdCode;
    }

    public void setPrdCode(String prdCode) {
        this.prdCode = prdCode;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public double getDiscount() {
        return discount;
    }

    public void setDiscount(double discount) {
        this.discount = discount;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getDisRatePrice() {
        return disRatePrice;
    }

    public void setDisRatePrice(double disRatePrice) {
        this.disRatePrice = disRatePrice;
    }

    public double getTax() {
        return tax;
    }

    public void setTax(double tax) {
        this.tax = tax;
    }

    public double getAbnormal() {
        return abnormal;
    }

    public void setAbnormal(double abnormal) {
        this.abnormal = abnormal;
    }

    public double getChangeOrder() {
        return changeOrder;
    }

    public void setChangeOrder(double changeOrder) {
        this.changeOrder = changeOrder;
    }

    public LocalDateTime getCrteTime() {
        return crteTime;
    }

    public void setCrteTime(LocalDateTime crteTime) {
        this.crteTime = crteTime;
    }

    public Integer getCrteMngId() {
        return crteMngId;
    }

    public void setCrteMngId(Integer crteMngId) {
        this.crteMngId = crteMngId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getConsumer() {
        return consumer;
    }

    public void setConsumer(String consumer) {
        this.consumer = consumer;
    }
}
